<template>
	<!--pages/stumy/order/detail.wxml-->
	<view class="warp">
		<view style="text-align: center;">
			 <image v-if="rowData.dimg" mode="aspectFill" style="width:200upx;height:200upx;border-radius: 20rpx;"  :src="imgpath+rowData.dimg"></image>
			 <image v-else mode="aspectFill" style="width:200upx;height:200upx;"  :src="`${picUrl}goods.png`"></image>
			<view style="margin-top:10upx">{{rowData.shopName}}</view>
			<view style="font-size: 1.2rem;font-weight: bold;margin:20upx">{{rowData.paymoney}}</view>
		</view>
		<view><span>当前状态：</span>{{rowData.state}}</view>
		<view><span>交易时间：</span>{{rowData.createTime}}</view>
		<view><span>商品：</span>{{rowData.dishesName}}</view>
		<view><span>收款机构：</span>{{rowData.company}}</view>
		<view><span>商户单号：</span>{{rowData.orderId}}</view>
		<view><span>支付方式：</span>
		    <span v-if="rowData.payType==0">卡支付</span>
			<span v-if="rowData.payType==1">微信</span>
			<span v-else>支付宝</span>
		</view>
		<view><span>交易单号：</span>{{rowData.payNo}}</view>
	</view>
</template>

<script>
	import Config from '@/util/index.js'
	export default {
		data() {
		    return {
				orderDetail:{},
				oid:'',
				rowData:{},
				imgpath:"",
				orderstate:""
		    }
		},
		onLoad(options){
			this.rowData = JSON.parse(options.parsData)
			console.log("this.oid",this.rowData)
			this.imgpath = Config.get('apiUrl')
		},
		methods:{
			
		}
	}
</script>

<style>
	.warp{width:70%;padding:20rpx;line-height:60rpx;margin: 0px auto;font-size:1rem}
	.warp span{color: #999;}
</style>
